<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
	<body>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
		<form>
			<input type="text" id="isbn" />
			<input id="submit-isbn" type="submit" />
		</form>
	
	
	
	<script type="text/javascript">
	
	
	
		
	$(document).ready(function() {

		$('#submit-isbn').click(function() {
			
			var isbn = $("#isbn").val();
			
			$.ajax({
				  type: "get", 
				  crossDomain : true,
				  mimeType : "application/xml",
				  url: "http://localhost:8080/test-rest/rest/livres/1111", 
				 
				  success: function(data, textStatus, jqXHR) {
				   	alert("yeaaaaa !!!");
				  },
				  error: function(jqXHR, textStatus, errorThrown) {
				    alert("ho !!!!");
				  }
			});
		 
			
			
			
		});// click

	});
	
	</script>
	
	</body>
</html>